Aggregate multicast trees for multicast virtual private networks

ABSTRACT

Principles of the invention are described for providing multicast virtual private networks (MVPNs) across a public network that are capable of carrying high-bandwidth multicast traffic with increased scalability. In particular, the MVPNs may transport layer three (L3) multicast traffic, such as Internet Protocol (IP) packets, between remote sites via the public network. The principles described herein may reduce the overhead of protocol independent multicast (PIM) neighbor adjacencies and customer control information maintained for MVPNs. The principles may also reduce the state and the overhead of maintaining the state in the network by removing the need to maintain at least one dedicated multicast tree per each MVPN.

This application claims the benefit of U.S. Provisional Application No.60/605,629, filed Aug. 30, 2004, the entire content of which isincorporated herein by reference.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is related to the following applications:

“Multicast Data Trees For Multicast Virtual Private Networks,” by RahulAggarwal, Yakov Rekhter and Anil Lohiya, U.S. patent application Ser.No. 11/212,500, filed the same day as the present application;

“Reliable Exchange Of Control Information For Multicast Virtual PrivateNetworks,” by Rahul Aggarwal, Yakov Rekhter and Anil Lohiya, U.S. patentapplication Ser. No. 11/212,507, filed the same day as the presentapplication;

“Transport of Control And Data Traffic For Multicast Virtual PrivateNetworks,” by Rahul Aggarwal, Yakov Rekhter and Anil Lohiya, U.S. patentapplication Ser. No. 11/213/636, filed the same day as the presentapplication;

“Shared Multicast Trees For Multicast Virtual Private Networks,” byRahul Aggarwal and Yakov Rekhter, U.S. patent application Ser. No.11/213,638, filed the same day as the present application;

“Label Switching Multicast Trees For Multicast Virtual PrivateNetworks,” by Rahul Aggarwal, Yakov Rekhter and Anil Lohiya, U.S. patentapplication Ser. No. 11/212,475, filed the same day as the presentapplication;

“Multicast Trees for Virtual Private Local Area Network (LAN) ServiceMulticast,” by Rahul Aggarwal and Yakov Rekhter, U.S. patent applicationSer. No. 11/212,932, filed the same day as the present application;

“Aggregate Multicast Trees For Virtual Private Local Area Network (LAN)Service Multicast,” by Rahul Aggarwal and Yakov Rekhter, U.S. patentapplication Ser. No. 11/213,637, filed the same day as the presentapplication;

“Multicast Data Trees For Virtual Private Local Area Network (LAN)Service Multicast,” by Rahul Aggarwal and Yakov Rekhter, U.S. patentapplication Ser. No. 11/212,490, filed the same day as the presentapplication;

“Exchange Of Control Information for Virtual Private Local Area Network(LAN) Service Multicast,” by Rahul Aggarwal and Yakov Rekhter, U.S.patent application Ser. No. 11/213,639, filed the same day as thepresent application;

“Auto-Discovery Of Multicast Virtual Private Networks,” by RahulAggarwal and Yakov Rekhter, U.S. patent application Ser. No. 11/213,640,filed the same day as the present application; and

“Inter-Autonomous System (AS) Multicast Virtual Private Networks,” byRahul Aggarwal and Yakov Rekhter, U.S. patent application Ser. No.11,213,641, filed the same day as the present application, the entirecontent of each of which is incorporated herein by reference.

TECHNICAL FIELD

The invention relates to computer networks and, more particularly, tovirtual private networks (VPNs) established over computer networks.

BACKGROUND

A computer network is a collection of interconnected computing devicesthat exchange data and share resources. In a packet-based network thecomputing devices communicate data by dividing the data into smallblocks called packets. Certain devices within the network, such asrouters, maintain routing information that describes routes through thenetwork. In this way, the packets may be individually routed across thenetwork from a source device to a destination device. The destinationdevice extracts the data from the packets and assembles the data intoits original form. Dividing the data into packets enables the sourcedevice to resend only those individual packets that may be lost duringtransmission.

Virtual private networks (VPNs) are often used to securely share dataover a public network, such as the Internet. For example, an enterprisethat includes multiple geographically separated sites, each siteincluding one or more computing devices, may establish a VPN to allowthe computing devices to securely communicate through the Internet oranother public network. In particular, VPNs transport layer three (L3)communications, such as Internet Protocol (IP) packets, between theremote sites via the public network.

In some cases, a VPN may be configured to carry L3 multicast traffic,such as Internet Protocol Television (IPTV), desktop conferences,corporate broadcasts, music and video web casts, and other forms ofmultimedia content. Multicast VPNs (MVPNs) typically rely on ingressreplication to transmit the multicast traffic from a multicast source tosubscriber devices within the MVPN sites. Ingress replication causes aningress router of a MVPN to replicate a multicast data packet of aparticular multicast group and send it to each egress router of the MVPNon the path to a subscriber device of that multicast group. However,ingress replication may be a reasonable model only when the bandwidth ofthe multicast traffic is low and/or the number of replications performedby the ingress router for a particular multicast data packet is small.

In order to handle high bandwidth multicast traffic, a MVPN may utilizeprotocol independent multicast (PIM) to tunnel multicast packets from amulticast source to subscriber devices within the MVPN sites. However,using PIM for MVPNs introduces fundamental scalability issues when anetwork includes a large number of MVPNs each with a large number ofsubscriber sites.

For a particular MVPN, a router maintains PIM neighbor adjacencies withevery other router that has a site in that MVPN. Thus for a givenrouter-router pair, multiple PIM adjacencies may be required, one perMVPN that the routers have in common. For each such PIM neighboradjacency, the router sends and receives PIM “hello” packets transmittedperiodically. For example, on a router with 1000 MVPNs and 100 sites perMVPN the router would typically maintain 100,000 PIM neighbors. In thiscase, a default hello interval of 30 seconds would result in an averageof 3,333 hello messages per second.

Furthermore, PIM is a soft state protocol that requires periodictransmission of customer control information, such as PIM join/prunemessages. A router propagates the customer join/prune messages receivedfrom a subscriber device to other routers in the network. Each router inthe network participating in one or more MVPNs periodically refreshesthese PIM customer join/prune messages. This can lead to a largeoverhead of periodic maintenance messages. Lastly, a router may use PIMto setup a multicast tree across the network for each MVPN to which therouter belongs. In this way, PIM cause the network to maintain state foreach MVPN established across the network.

SUMMARY

In general, principles of the invention are described for providingmulticast virtual private networks (MVPNs) across a public network thatare capable of carrying high bandwidth multicast traffic with increasedscalability. For example, the principles of the invention may be appliedto MVPNs that transport layer three (L3) multicast traffic, such asInternet Protocol (IP) packets, between remote sites via the publicnetwork. The principles described herein may reduce the overhead ofprotocol independent multicast (PIM) neighbor adjacencies and customercontrol information maintained for MVPNs. The principles may also reducethe state and the overhead of maintaining the state in the network byremoving the need to maintain at least one dedicated multicast tree pereach MVPN.

For example, a router within a public network, such as the Internet, mayuse the border gateway protocol (BGP) to discover MVPN memberships ofother routers in the public network and maintain PIM neighboradjacencies. In addition, a router may use reliable transport, such asBGP or PIM with reliability extensions, to transmit control messages,such as customer join/prune messages, between routers whilesubstantially eliminating the need for periodic maintenance messages.Auto-discovering the MVPN memberships with BGP enables customer controland data traffic to be transmitted separately using different tunnelingtechnologies.

By separating the control messages and the data traffic, multicast treesmay be setup across the public network by non-PIM protocols, such asmulti-protocol label switching (MPLS) protocols. The MPLS protocols mayinclude the label distribution protocol (LDP), and the resourcereservation protocol (RSVP), which may be extended to include trafficengineering (TE) capabilities. The multicast trees may compriseaggregate multicast trees that support more than one MVPN to reduce thestate maintained in the public network. In addition, data multicasttrees may be setup to transmit traffic for specific high bandwidthmulticast groups. The multicast trees may be source trees or sharedtrees. Furthermore, multicast trees setup across a public network, orautonomous system (AS), may be stitched to other multicast treesestablished in another AS to provide inter-AS MVPN service withoutrelying on a single MVPN tunnel.

In one embodiment, a method comprises establishing a multicast treehaving a source device and one or more destination devices within anetwork, wherein each of the one or more destination devices belongs toat least one MVPN. The method further comprises transmitting multicastdata packets for more than one of the MVPNs from the source device tothe one or more destination devices on the multicast tree.

In another embodiment, a network device comprises a control unit thatestablishes a multicast tree having a source device and one or moredestination devices within a network, wherein each of the destinationdevices belongs to at least one MVPN. The control unit also transmitsmulticast data packets for more than one of the MVPNs from the sourcedevice to the one or more destination devices on the multicast tree.

In another embodiment, a computer-readable medium comprises instructionsthat cause a programmable processor to establish a multicast tree havinga source device and one or more destination devices within a network,wherein each of the destination devices belongs to at least one MVPN.The instructions further cause the programmable processor to transmitmulticast data packets for more than one of the MVPNs from the sourcedevice to the one or more destination devices on the multicast tree.

In a further embodiment, a system comprises a source device within anetwork, one or more destination devices within the network, whereineach of the destination devices belongs to at least one MVPN, and amulticast tree established within the network that transmits multicastdata packets for more than one of the MVPNs from the source device tothe one or more destination devices.

The details of one or more embodiments of the invention are set forth inthe accompanying drawings and the description below. Other features,objects, and advantages of the invention will be apparent from thedescription and drawings, and from the claims.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram illustrating an example service provider (SP)network in which provider edge (PE) routers support at least onemulticast virtual private network (MVPN).

FIG. 2 is a block diagram illustrating an exemplary PE router capable ofsupporting one or more MVPNs.

FIG. 3 illustrates an exemplary BGP encoding of network layerreachability information (NLRI).

FIG. 4 illustrates an example tree identifier (TI) attribute.

FIG. 5 is a flowchart illustrating an example procedure for setting upan aggregate default tree between a root of the aggregate default treeand an egress PE router.

FIG. 6 is a flowchart illustrating an example procedure for setting upan aggregate data tree between a root of the aggregate data tree and anegress PE router.

FIGS. 7A and 7B are flowcharts illustrating two exemplary processes ofswitching from an aggregate default tree to an aggregate data tree.

FIG. 8 illustrates an example IP encapsulated packet for transmission ona PIM-based multicast tree.

FIG. 9 illustrates an example MPLS encapsulated packet for transmissionon a RSVP- or LDP-based multicast tree.

FIG. 10 is a flowchart illustrating an example process of forwardingmulticast data packets on an aggregate multicast tree across a publicnetwork.

FIG. 11 is a block diagram illustrating exemplary autonomous systems(ASs) in which autonomous system border routers (ASBRs) support at leastone inter-AS MVPN.

DETAILED DESCRIPTION

FIG. 1 is a block diagram illustrating an example service provider (SP)network 10 in which provider edge (PE) routers 12A-12C (“PE routers 12”)support at least one multicast virtual private network (MVPN). In theillustrated embodiment, PE router 12A sets up a multicast tree 15 acrossthe SP network 10 to provide layer three (L3) multicast service betweenPE routers 12. For example, multicast tree 15 may transport L3 multicasttraffic from a multicast source 24 to subscriber devices within at leastone of the MVPN A site and the MVPN B site coupled to PE routers 12. Inother embodiments, multicast tree 15 may be setup by any one of PErouters 12.

SP network 10 may comprise the Internet or another public network. Insome cases, SP network 10 may comprise a multi-protocol label switching(MPLS) network. Each of the MVPN sites may include a local area network(LAN) or a wide area network (WAN) that comprises a plurality ofsubscriber devices, such as desktop computers, laptops, workstations,PDAs, wireless devices, network-ready appliances, file servers, printservers or other devices.

Each of PE routers 12 couples to one or more of the MVPN sites viacustomer edge (CE) routers 16A-16E (“CE routers 16”). For example, PErouter 12A is coupled to MVPN A site 18A and MVPN B site 18B via CErouter 16A and CE router 16B, respectively. PE router 12A is alsocoupled to multicast source 24. PE router 12B is coupled to MVPN A site20 via CE router 16C. PE router 13C is coupled to MVPN A site 22A andMVPN B site 22B via CE router 16D and CE router 16E, respectively.Multicast tree 15 couples PE routers 12 to each other via provider (P)routers 14A-14D (“P routers 14”) within SP network 10.

In the illustrated embodiment, MVPN A and MVPN B established across SPnetwork 10 are capable of carrying high bandwidth multicast traffic withincreased scalability. For example, MVPN A and MVPN B may carry L3multicast traffic, such as Internet Protocol Television (IPTV), desktopconferences, corporate broadcasts, music and video web casts, and otherforms of multimedia content, from multicast source 24 to subscriberdevices within the MVPN A sites and the MVPN B sites. Moreover,principles of the invention described herein may reduce the overhead ofPIM neighbor adjacencies maintained for MVPN A and MVPN B. The inventionmay also reduce the state and the overhead of maintaining the statewithin SP network 10 by removing the need to maintain at least onededicated multicast tree per MVPN.

In one embodiment, each of PE routers 12 includes virtual routing andforwarding (VRF) (not shown) for each MVPN to which it has membership.PE routers 12 advertise their MVPN membership, i.e., the VRFs configuredfor multicast, to the other PE routers 12 using the border gatewayprotocol (BGP). In this way, each of PE routers 12 in SP network 10 havea complete view of the MVPN memberships of the other PE routers.

A PE router that belongs to a certain MVPN considers all the other PErouters that advertise membership for that MVPN to be PIM neighbors. Forexample, PE router 12A belongs to MVPN A and MVPN B, PE router 12Bbelongs to MVPN A, and PE router 12C belongs to MVPN A and MVPN B.Therefore, PE router 12A considers PE router 12B and PE router 12C to bePIM neighbors for MVPN A. PE router 12A considers PE router 12C to be aPIM neighbor for MVPN B.

A PIM neighbor adjacency exists as long as the BGP advertisement is notwithdrawn. By using BGP advertisements, PE routers 12 do not have toperform PIM neighbor adjacency management. This eliminates PIM helloprocessing typically required for maintaining the PIM neighboradjacency. In some cases, the BGP advertisements may support optionalcapabilities conventionally exchanged between PIM neighbors by PIMhellos.

In addition, a reliable transport protocol may be used to transmitcustomer control messages between PE routers 12. A reliable transportprotocol, such as BGP or PIM extended to include a refresh reductionmechanism, substantially eliminates the need to periodically refreshcustomer control messages. For example, PE router 12A may use BGP or PIMwith reliability extensions to transmit customer join/prune messagesreceived from a subscriber device within one of MVPN sites 18A and 18Bto the other PE routers 12 in SP network 10.

In conventional MVPNs that only use the PIM tunneling protocol,multicast domain (MD) tunnels are established across a public networkfor sending both customer control messages and customer data traffic.The single tunneling protocol creates an undesirable dependency betweenthe exchange of customer multicast control information and the multicasttransport technology.

Utilizing BGP advertisements for MVPNs, as described above, makes thediscovery and maintenance of PIM neighbors independent of the multicastdata transport technology in SP network 10. In other words, customercontrol and multicast data traffic may be transmitted separately usingdifferent tunneling protocols. PE routers 12 may use PE-to-PE tunnels toexchange customer multicast control information. For example, PE router12B may use a PE-to-PE tunnel to send customer multicast controlinformation to the upstream PE router 12A that is a PIM neighbor.

PE router 12A may setup multicast tree 15 across SP network 10 totransport customer multicast data with one of a variety of tunnelingtechnologies, without impacting the procedures for exchange of MVPNrouting information. For example, multicast tree 15 may be setup by PErouter 12A using PIM or non-PIM protocols, such as MPLS protocols. MPLSprotocols include the label distribution protocol (LDP) and the resourcereservation protocol (RSVP), which may be extended to include trafficengineering (TE). In the case of PE router 12A using RSVP-TE, multicasttree 15 may comprise a point-to-multipoint (P2MP) label switched path(LSP).

In the illustrated embodiment, multicast tree 15 comprises an“aggregate” multicast tree capable of transmitting traffic for both MVPNA and MVPN B across SP network 10. In this way, SP network 10 does notneed to separately maintain state per each MVPN as one multicast tree 15can be used to support multiple MVPNs. In some cases, multicast tree 15may comprise an aggregate “default” tree mapped to MVPN A and MVPN B. Inother cases, since PE router 12A is coupled to multicast source 24,multicast tree 15 may comprise an aggregate “data” tree mapped tospecific multicast groups. These embodiments are described in furtherdetail below.

In the case where multicast tree 15 comprises an aggregate default tree,multicast tree 15 carries traffic of all the multicast groups requestedby subscriber devices within both MVPN A and MVPN B. PE router 12A maysetup multicast tree 15 as an aggregate default tree by using BGP todiscover egress PE routers 12B and 12C, i.e., the leaves of multicasttree 15. PIM neighbor discovery and maintenance using BGP allows PErouter 12A to learn the MVPN membership information of PE routers 12Band 12C. This in turn allows the creation of the aggregate default treemapped to MVPN A and MVPN B. The leaves of the aggregate default treeare the PE routers within SP network 10 that belong to one or more ofthe MVPNs mapped to the aggregate default tree. In other embodiments,multicast tree 15 may be setup as an aggregate default tree by any of PErouters 12 or by a rendezvous point (RP), e.g., one of P routers 14,within SP network 10.

By removing the need to separately maintain per MVPN state in SP network10, aggregate default trees may effectively reduce the number of treesin SP network 10 and the signaling overhead associated with maintainingthese trees. However, since aggregate default tree 15 carries trafficfor all the multicast groups requested in both MVPN A and MVPN B,aggregate default tree 15 may deliver a multicast data packet for aparticular group to some of PE routers 12 that do not have subscriberdevices for that multicast group.

In the case where multicast tree 15 comprises an aggregate data tree,multicast tree 15 only carries traffic of specific multicast groups frommulticast source 24 to the MVPN sites that include subscriber devices ofthe multicast traffic. Multicast tree 15 may be setup as an aggregatedata tree by a router in SP network 10 that is coupled to multicastsource 24, i.e., PE router 12A. PE router 12A may setup multicast tree15 as an aggregate data tree by using customer join messages to discoveregress PE routers 12B and 12C, i.e., the leaves of multicast tree 15.Reliable transport of customer control information allows PE router 12Ato learn the multicast group membership information of PE routers 12Band 12C. This in turn allows the aggregate data tree to be mapped tospecific multicast groups of MVPN A and MVPN B. As an aggregate datatree, the leaves of multicast tree 15 are the PE routers within SPnetwork 10 that include subscriber devices of the one or more specificmulticast groups mapped to multicast tree 15.

In this way, PE router 12A is able to create a separate multicast tree15 as an aggregate data tree for specific, high-bandwidth multicastgroups. More than one multicast group may be mapped onto the aggregatedata tree. In addition, the multicast groups mapped to the aggregatedata tree may also belong to different MVPNs.

As an aggregate data tree, multicast tree 15 transmits the traffic forthese multicast groups only to those PE routers 12 with subscriberdevices of the specific multicast groups. This avoids flooding other PErouters in the MVPN that have not requested the specific multicasttraffic. When router 12A receives multicast traffic of one of thespecific multicast groups mapped to multicast tree 15, PE router 12A mayswitch from an aggregate default tree to an aggregate data tree, e.g.,multicast tree 15, to transmit the multicast traffic.

In addition, multicast tree 15 can be either a “source” tree or a“shared” tree. As used herein, a source tree is used to carry trafficonly for the multicast VRFs that exist locally on the root of the tree.For example, in the case where PE router 12B is the root of multicasttree 15, as a source tree, multicast tree 15 may only carry traffic forMVPN A to which PE router 12B belongs. In contrast, a shared tree cancarry traffic belonging to VRFs that exist on other PEs as well. Forexample, in the case where PE router 12B is the root of multicast tree15, as a shared tree, multicast tree 15 may carry traffic for MVPN A towhich PE router 12B belongs and for MVPN B to which PE router 12B doesnot belong.

FIG. 2 is a block diagram illustrating an exemplary PE router 30 capableof supporting one or more MVPNs in accordance with the techniquesdescribed herein. As one example, PE router 30 may comprise an ingressrouter or root of a multicast tree established across a public network,such as the Internet. PE router 30 may also comprise an egress router orleaf of a multicast tree established across the public network byanother PE router. PE router 30 may operate substantially similar to anyof PE routers 12 from FIG. 1.

In this example, PE router 30 includes interface cards 32A-32N (“IFCs32”) that receive multicast packets via inbound links 33A-33N (“inboundlinks 33”) and send multicast packets via outbound links 34A-34N(“outbound links 34”). IFCs 32 are typically coupled to links 33, 34 viaa number of interface ports. Router 30 also includes a control unit 31that determines routes of received packets and forwards the packetsaccordingly via IFCs 32.

A system administrator may specify configuration information for PErouter 30 via a user interface 44 included within control unit 31. Theconfiguration information may then be stored in database (DB) 45 coupledto user interface 44. User interface 44 may include a display, akeyboard, a mouse or another type of input device.

Control unit 31 maintains routing information 46 that describes thetopology of a network and, in particular, routes through the network.Routing information 46 may include, for example, route data thatdescribes various routes within the network, and corresponding next hopdata indicating appropriate neighboring devices within the network foreach of the routes. Router 30 updates routing information 46 toaccurately reflect the topology of the network.

Control unit 31 also maintains forwarding information 47 that associatesnetwork destinations with specific next hops and corresponding interfaceports. In general, when router 30 receives a multicast packet via one ofinbound links 33, control unit 31 determines a destination andassociated next hop for the packet in accordance with routinginformation 46 and forwards the packet on one of outbound links 34 tothe corresponding next hop in accordance with forwarding information 47based on the destination of the packet.

Control unit 31 provides an operating environment for protocols 36 toexecute. In the illustrated embodiment, protocols 36 include RSVP 38,BGP 39, PIM 40, and LDP 42. Control unit 31 also includes auto-discoverymodule 48, binding module 49, aggregation module 50, default tree setupmodule 51, data tree setup module 52, multicast tree interfaces 54,PE-PE exchange module 56, and PE-CE exchange module 58. In otherembodiments, binding module 49 and aggregation module 50 may comprisesub-modules within auto-discovery module 48. In still other embodiments,binding module 49 and aggregation module 50 may comprise sub-modules indefault tree setup module 51 and/or data tree setup module 52.

Auto-discovery module 48 advertises the MVPN memberships of PE router 30to other PE routers in the network using BGP 39 and receives BGPadvertisements from the other PE routers. Therefore, PE router 30 mayhave a complete view of the MVPN memberships of the other PE routers inthe network. Auto-discovery module 48 then determines which PE routersin the network belong to the same MVPNs as PE router 30. PE router 30considers all the other PE routers that advertise membership for thesame MVPNs to be PIM neighbors. Auto-discovery module 48 maintains PIMneighbor adjacencies with the PE routers of each of the MVPNs as long asthe BGP advertisement is not withdrawn. In this way, PE router 30 doesnot have to perform PIM neighbor adjacency management.

PE-CE exchange module 58 transmits multicast control messages between PErouter 30 and CE routers of MVPN sites that include subscriber device ofmulticast traffic. For example, PE-CE exchange module 58 may receivecustomer join/prune messages for multicast groups from subscriberdevices within the MVPN sites. PE-CE exchange module 58 may use PIM 40to maintain PIM neighbor adjacencies with the CE routers. PIM 40 may beextended to include a refresh reduction mechanism to significantlyreduce the overhead for customer control messages. In some cases, PErouter 30 may communicate with a multicast source via PE-CE exchangemodule 58.

PE-PE exchange module 56 utilizes a reliable transport protocol totransmit PIM control messages between PE router 30 and neighboring PErouters in the network. PE-PE exchange module 56 may use either BGP 39or PIM 40 with reliability extensions. In this way, PE-PE exchangemodule 56 substantially eliminates the need to periodically refreshcustomer control messages, such as customer join/prune messages.

Utilizing BGP 39 in auto-discovery module 48 makes the discovery andmaintenance of PIM neighbors independent of the multicast data transporttechnology used by PE router 30. PE-PE exchange module 56 sets upPE-to-PE tunnels to exchange customer multicast control informationreceived from subscriber devices via PE-CE exchange module 58. PE-PEexchange module 56 may encapsulate the customer control packets in aMPLS label before encapsulating the packets in the PE-to-PE tunnel. TheMPLS label specifies the context of the customer control packets, e.g.,a customer join message intended for a given MVPN. PE router 30 maytunnel a customer multicast control packet to another PE router in thenetwork that is the PIM neighbor for the packet.

PE router 30 supports various multicast data packet tunnelingtechnologies, without impacting the procedures for exchange of MVPNrouting information. Default tree setup module 51 and data tree setupmodule 52 do not place any restrictions on the multicast technology usedto setup multicast trees across the network. For example, tree setupmodules 51, 52 may use RSVP 38, PIM 40, or LDP 42 to establish multicasttrees. In some cases, RSVP 38 may be extended to provide TEcapabilities.

For example, default tree setup module 51 may use RSVP 38 to instantiatea P2MP LSP as a multicast tree. As described above, auto-discoverymodule 48 discovers the MVPN memberships of other PE routers in thenetwork. Once the leaves of the multicast default tree are discovered,default tree setup module 51 signals the LSP with conventional RSVP-TEP2MP procedures. Aggregation module 50 may then decide which of theMVPNs to aggregate into a single multicast default tree. Binding module49 maps the chosen MVPNs to the aggregate default tree and uses BGP 39to advertise the mapping to the egress PE routers, or leaves, of theaggregate default tree.

As another example, default tree setup module 51 may use PIM 40 to setupa multicast tree in the core of the network. In this case, the aggregatedefault tree is termed an aggregate multicast distribution tree (MDT).Auto-discovery module 48 discovers the MVPN memberships of other PErouters in the network. Aggregation module 50 may then decide which ofthe MVPNs to aggregate into a single default multicast tree. Bindingmodule 49 maps the chosen MVPNs to the aggregate MDT and uses BGP 39 toadvertise the mapping to the egress PE routers, or leaves, of theaggregate MDT. The egress PE routers can then join the aggregate MDT.The egress PE routers also join the provider group address correspondingto the aggregate MDT.

In either case, the aggregate default tree may comprise either a sourcetree or a shared tree. In the case of a shared tree, the aggregatedefault tree can carry traffic that belonging to locally located VRFs ofPE router 30 and remotely located VRFs that exist on other PEs withinthe network. The other PEs in the network then tunnel the multicast datatraffic to the root of the shared tree, e.g., PE router 30, to betransmitted on the shared tree. In this way, the shared treesubstantially eliminates the need for each of the PE routers in thenetwork to establish an individual aggregate default tree.

When PE router 30 is coupled to a multicast source, data tree setupmodule 52 may establish an aggregate data tree across the network. Anaggregate default tree, by definition, maps to all the customersource-group (<C-S, C-G>) entries belonging to all the MVPNs associatedwith the aggregate default tree. An aggregate data tree maps to specific<C-S, C-G> entries associated with subscriber devices coupled to theaggregate data tree. As one example, aggregate data trees may be used totransport high bandwidth multicast traffic of one or more specificmulticast groups across the network. The specific multicast groups maybelong to multiple MVPNs. Aggregate data trees may substantiallyeliminate flooding of PE routers that do not have subscriber devices forthe specific high bandwidth multicast traffic.

Prior to setting up aggregate data trees with data tree setup module 52,auto-discovery module 48 discovers PE routers in the network that havesubscriber devices of specific multicast groups. Auto-discovery module48 discovers the egress PE routers using customer join messages that PErouter 30 receives. In this case, customer join suppression is disabled.Aggregation module 50 may then decide which of the multicast groups,i.e., <C-S, C-G> entries, to aggregate into a single multicast datatree. Binding module 49 maps the chosen <C-S, C-G> entries to theaggregate data tree and uses BGP 39 to advertise the mapping to theegress PE router, or leaves, of the aggregate data tree. In the casewhere data tree setup module 52 uses PIM 40 to setup an aggregate datatree in the network, the aggregate data tree is termed an aggregate dataMDT.

Aggregate data tree creation may be triggered on criteria other thanbandwidth once customer join suppression is disabled. For example, therecould be a “pseudo wasted bandwidth” criteria such that PE router 30switches to an aggregate data tree when the bandwidth multiplied by thenumber of PE routers without subscriber devices for a specific multicastgroup is above a specified threshold. This criterion may reduce theamount of bandwidth wasted by sparsely subscribed low-bandwidth groups.In addition, it may substantially eliminate the use of aggregate datatrees for a high bandwidth multicast stream for which all the PE routersin the network have subscriber devices.

For either aggregate default trees or aggregate data trees, onceauto-discovery module 48 has discovered the egress PE routers, i.e.,leaves, of the multicast tree within the network, aggregation module 50determines which MVPNs or <C-S, C-G> entries to aggregate into a singlemulticast tree. The heuristics used to decide which MVPNs or <C-S, C-G>entries to aggregate may be implementation dependent. In some cases, PErouter 30 may use offline tools to aide in the aggregation decision.

The “congruency” of aggregation is defined by the amount of overlap inthe egress PE routers, or leaves, of the multicast trees that areaggregated. For example, the congruency of aggregate default treesdepends on the amount of overlap in memberships of MVPNs that are mappedto the aggregate default tree. If there is complete overlap, aggregationis substantially perfectly congruent. As the overlap between the MVPNsthat are mapped to the aggregate default tree reduces, the congruencyreduces.

If aggregation module 50 performs aggregation that it is notsubstantially perfectly congruent, a PE router in the network mayreceive multicast traffic for MVPNs to which it does not belong. As theamount of multicast traffic for these unwanted MVPNs increases,aggregation becomes less optimal with respect to delivered traffic.Hence there is a tradeoff between reducing state in the network anddelivering unwanted traffic.

Aggregation module 50 may provide control over the congruency ofaggregation. For example, user interface 44 may receive aggregationconfiguration information from a system administrator. In this way, aservice provider may deploy aggregation depending on the MVPN membershipand traffic profiles in the network. The service provider may alsoengineer the maximum amount of unwanted MVPNs for which a particular PErouter may receive traffic.

Aggregate default trees and aggregate data trees require a mechanism forthe egress PE routers to demultiplex the multicast traffic received overthe multicast trees. Since multicast traffic belonging to multiple MVPNscan be carried over the same multicast tree, there is a need to identifythe MVPN to which the multicast packet belongs. An ingress router of themulticast tree may assign an inner label that corresponds to themulticast VRF for which the packet is intended. The ingress router usesthis inner label while encapsulating a customer multicast data packet.Each of the egress PE routers of the multicast tree is capable ofassociating this inner label with the same MVPN and using the innerlabel to demultiplex the multicast traffic received over the aggregatedefault tree or the aggregate data tree.

For purposes of illustration, PE router 30 will be described as anegress PE router of the multicast tree. Using a downstream labelassignment would require all of the egress PE routers of the MVPN,including PE router 30, to agree on a common label for the MVPN.Therefore, the ingress PE router uses upstream label assignment toallocate the inner label. PE router 30 comprises a separate label spacefor every aggregate default tree and every aggregate data tree for whichPE router 30 is a leaf node. Control unit 31 creates a forwarding entrywithin forwarding information 47 for the inner label allocated by theingress PE.

When PE router 30 receives a packet over an aggregate multicast tree, anaggregate tree identifier (TI) specifies the label space in which toperform the inner label lookup. In some cases, control unit 31 maycreate a logical interface within multicast tree interfaces 54 thatcorresponds to the aggregate multicast tree. The logical interfacewithin multicast tree interface 54 then specifies the label space inwhich to perform the inner label lookup.

The ingress PE router informs the egress PE routers of the aggregatemulticast tree about the inner label as part of a discovery procedure.As described above, once a PE router sets up an aggregate default treeor an aggregate data tree, binding module 49 uses BGP 39 to announce theMVPNs or the <C-S, C-G> mapped to the multicast tree to the egress PErouters in the network. For an aggregate default tree, binding module 49announces the mapping of all MVPNs mapped to the aggregate default tree.The announcement also includes the inner label allocated by the ingressPE for each MVPN and the aggregate default TI. For an aggregate datatree, binding module 49 announces the mapping of all specific <C-S, C-G>entries mapped to the aggregate data tree. The announcement alsoincludes the inner label allocated by the ingress PE for each <C-S, C-G>entry and the aggregate data TI.

Control unit 31 may use IP/GRE (internet protocol/generic routingencapsulation) or MPLS to encapsulate multicast data packets fortransmission on aggregate default trees or aggregate data trees. If theaggregate default tree or the aggregate data tree uses MPLSencapsulation, the outer MPLS label and the incoming interface specifiesthe label space of the inner label. In this case,penultimate-hop-popping is disabled. If the aggregate default tree orthe aggregate data tree uses IP/GRE encapsulation, the root PE routersource address and the provider group address of the multicast treespecifies the label space of the inner label. A lookup in the labelspace of the inner label identifies the multicast VRF in which toperform the customer multicast lookup.

The architecture of router 30 illustrated in FIG. 2 is shown forexemplary purposes only. The invention is not limited to thisarchitecture. In other embodiments, router 30 may be configured in avariety of ways. In one embodiment, for example, some of thefunctionally of control unit 31 may be distributed within IFCs 32. Inanother embodiment, control unit 31 may include a routing engine thatperforms routing functions and maintains routing information base (RIB),e.g., routing information 46, and a forwarding engine that performspacket forwarding based on a forwarding information base (FIB), e.g.,forwarding information 47, generated in accordance with the RIB.

Control unit 31 may be implemented solely in software, or hardware, ormay be implemented as a combination of software, hardware, or firmware.For example, control unit 31 may include one or more processors whichexecute software instructions. In that case, the various softwaremodules of control unit 31 may comprise executable instructions storedon a computer-readable medium, such as computer memory or hard disk.

FIG. 3 illustrates an exemplary BGP encoding 60 of network layerreachability information (NLRI) that may be utilized as an extension toBGP to support embodiments of the invention. In this example, the NLRIis associated with a MVPN subsequent address family identifier (SAFI).BGP encoding 60 comprises at least a portion of a BGP advertisement. Asdescribed above, BGP advertisements are used for MVPN membershipdiscovery, propagation of customer control information, aggregatedefault tree discovery, and aggregate data tree discovery.

BGP encoding 60 encodes the NLRI into a length field 62, a MPLS labelfield 63, a route distinguisher (RD) field 64, a multicast source lengthfield 65, a multicast source field 66, and a multicast group field 67.Length field 62 comprises two octets and RD field 64 comprises eightoctets. The remaining fields within BGP encoding 60 comprise variablefield lengths.

For MVPN membership discovery, the information elements are included inBGP encoding 60 with RD field 64 and multicast group field 67 set tozero. For a particular MVPN, the BGP advertisement includes the addressof the ingress PE router as the PIM neighbor address for use by other PErouters in the network. This address may be shared by all the MVPNs towhich the ingress PE router belongs or it may be different for each ofthe MVPNs. The BGP advertisement also includes the inner label allocatedby the ingress PE router to identify the MVPN. Other PE routers in thenetwork use the inner label to send customer join/prune messages to theingress PE. The inner label identifies the multicast VRF for which thecustomer join/prune message is intended. When ingress replication isused, the inner label must be present for transmitting customermulticast traffic.

When the ingress PE router distributes this information, the BGPadvertisement also includes a Route Target Extended Communities (RTEC)attribute. The RTEC attribute may be an “import route target” of eachVRF in the multicast tree. BGP distribution procedures ensure that theadvertised information gets associated with the right VRFs. The BGPadvertisement described herein implies that a PE-CE exchange modulewithin the ingress PE is fully functional. When the PE-CE exchangemodule becomes dysfunctional, the ingress PE withdraws the BGPadvertisement and discontinues the PIM neighbor adjacency.

For propagation of customer multicast control information, such ascustomer join/prune messages, the information elements are included inBGP encoding 60. For a particular MVPN, the BGP advertisement includesthe RD 64 configured for the MVPN. RD 64 uniquely identifies the <C-S,C-G> entry as the PE router addresses could overlap between differentMVPNs. The BGP advertisement also includes the customer multicast sourceaddress 66 and the customer multicast group address 67. Multicastaddresses 66 and 67 can be prefixes.

When the ingress PE router distributes this information, the BGPadvertisement includes the RTEC attribute. BGP distribution proceduresensure that the advertised information gets associated with the rightVRFs. The address of the PE router that originates the customer controlinformation is carried in the BGP next-hop address of theMP_REACH_ATTRIBUTE.

The root of an aggregate default tree maps one or more MVPNs to theaggregate default tree. For aggregate default tree discovery, theinformation elements for the MVPNs that are mapped to the aggregatedefault tree are included in BGP encoding 60 of the NLRI. RD field 64and multicast group field 67 are set to zero. For a particular MVPN, theBGP advertisement includes the address of the root of the aggregatedefault tree and the inner label allocated by the root of the aggregatedefault tree for the MVPN. When the ingress PE router distributes thisinformation, the BGP advertisement also includes an aggregate defaulttree identifier (TI) attribute and a RTEC attribute.

To guarantee uniqueness for different NLRIs, the root of the aggregatedefault tree ensures that MPLS label 63 is different for MVPN membershipdiscovery and aggregate default tree discovery. The address of the rootis required in the above NLRIs to maintain uniqueness of the NLRI. Sincethe root address is carried in the NLRI, the BGP next-hop address in theNEXT_HOP attribute or the MP_REACH_ATTRIBUTE may be set to zero by thesender and ignored by the receiver.

The root of an aggregate data tree maps one or more <C-S, C-G> entriesto the aggregate data tree. For aggregate data tree discovery, theinformation elements for the <C-S, C-G> entries that are mapped to theaggregate data tree are included in BGP encoding 60 of the NLRI. For aparticular <C-S, C-G> entry, the BGP advertisement includes the RD 64corresponding to the multicast enabled VRF. RD 64 uniquely identifiesthe <C-S, C-G> entry as the aggregate data tree root address couldoverlap between different MVPNs. The BGP advertisement also includes theinner label allocated by the root of the aggregate data tree for the<C-S, C-G> entry. Furthermore, the BGP advertisement includes thecustomer multicast source address 66 and the customer multicast groupaddress 67. Multicast addresses 66 and 67 can be prefixes in order toallow a range of customer source and group addresses to be mapped to theaggregate data tree.

When the ingress PE router distributes this information, the BGPadvertisement includes an aggregate data TI attribute and a RTECattribute. The address of the Aggregate Data Tree root is carried in theBGP next-hop address of the MP_REACH_ATTRIBUTE.

FIG. 4 illustrates an example tree identifier (TI) attribute 70 for usewith embodiments of the invention. TI attribute 70 enablesidentification of a specific aggregate default tree or aggregate datatree. As described above, aggregate default tree and aggregate data treeadvertisements carry TI attribute 70. TI attribute 70 includes whetherthe aggregate multicast tree is a shared aggregate multicast tree andthe type of tunneling protocol the root of the aggregate multicast treeused to establish the aggregate multicast tree. The TI attribute alsoincludes the identifier of the aggregate multicast tree based on thetree type.

TI attribute 70 includes an S bit field 72, a reserved field 73, a treetype field 74, and a tree identifier list field 75. S bit 72 is set whenthe aggregate multicast tree comprises a shared aggregate multicasttree. In other words, TI attribute 70 announces when the aggregatemulticast tree is capable of carrying traffic that belongs to VRFs thatdo not exist on the root of the aggregate multicast tree. Tree typefield 74 identifies the multicast tunneling technology used by the rootof the aggregate multicast tree to establish the aggregate multicasttree. In this way, tree type field 74 determines the semantics of treeidentifier list field 75.

Tree type field 74 may identify one of PIM-SSM (source specific mode)MDT, PIM-SM (sparse mode) MDT, or RSVP-TE P2MP LSP. When the type is setto PIM-SM MDT or PIM-SSM MDT, tree identifier list field 75 contains aPIM provider source-group (<P-S, P-G>) address. Hence MP_REACHidentifies a set of MVPN customer multicast trees, the TI attributeidentifies a particular aggregate multicast tree, and the BGPadvertisement of MP_REACH and TI creates a binding between the aggregatemulticast tree and the set of MVPN customer trees.

FIG. 5 is a flowchart illustrating an example procedure for setting upan aggregate default tree between a root of the aggregate default treeand an egress PE router. In the case of an aggregate default tree, theaggregate tree root may comprise a PE router or a RP within the network.The aggregate default tree may be a source tree or a shared tree. Theaggregate tree root and the egress PE router may operate substantiallysimilar to PE router 30 illustrated in FIG. 2.

The aggregate tree root uses BGP to auto-discover the MVPN membershipsof the PE routers in the network (80). In this way, the aggregate treeroot has a complete view of the MVPN memberships of the other PErouters. From the complete MVPN listing, the aggregate tree rootdetermines which of the MVPNs to aggregate into a single defaultmulticast tree. The aggregate tree root then maps the aggregate defaulttree to these MVPNs (81). The aggregate tree root again uses BGP toadvertise the mapping information to the egress PE routers of theaggregate default tree (82).

At least one of the egress PE routers of the aggregate default treereceives the advertised mapping information (84). The egress PE routerexamines the mapping information and associates the aggregate defaulttree with one or more of the MVPNs to which the egress PE router belongs(85). The egress PE router then creates a logical interface to a labelspace corresponding to the aggregate default tree (86). As describedherein, a multicast packet transmitted on the aggregate multicast treeincludes an inner label that identifies the MVPN to which the packetbelongs. The logical interface directs the egress PE router to theappropriate label space in which to perform an inner label lookup. Theinner label lookup in turn determines the VRF in which the egress PErouter performs a customer multicast packet lookup.

FIG. 6 is a flowchart illustrating an example procedure for setting upan aggregate data tree between a root of the aggregate data tree and anegress PE router. In the case of an aggregate data tree, the aggregatetree root comprises a PE router coupled to a multicast source. Theaggregate data tree may be a source tree or a shared tree. The aggregatetree root and the egress PE router may operate substantially similar toPE router 30 illustrated in FIG. 2.

The aggregate tree root uses customer join messages to auto-discover themulticast group memberships, i.e., <C-S, C-G> entries, of the PE routersin the network (90). In this way, the aggregate tree root has a completeview of the <C-S, C-G> entries of the other PE routers. From thecomplete multicast group listing, the aggregate tree root determineswhich of the <C-S, C-G> entries to aggregate into a single datamulticast tree. The aggregate tree root then maps the aggregate datatree to these specific multicast groups (91). The aggregate tree rootuses BGP to advertise the mapping information to the egress PE routersof the aggregate data tree (92).

At least one of the egress PE routers of the aggregate data treereceives the advertised mapping information (94). The egress PE routerexamines the mapping information and associates the aggregate data treewith one or more of the specific <C-S, C-G> entries to which the egressPE router belongs (95). The egress PE router then creates a logicalinterface to a label space corresponding to the aggregate data tree(96). As described herein, a multicast packet transmitted on theaggregate multicast tree includes an inner label that identifies themulticast group to which the packet belongs. The logical interfacedirects the egress PE router to the appropriate label space in which toperform an inner label lookup. The inner label lookup in turn determinesthe VRF in which the egress PE router performs a customer multicastpacket lookup.

FIGS. 7A and 7B are flowcharts illustrating two exemplary processes ofswitching from an aggregate default tree to an aggregate data tree.Aggregate data trees provide a PE router with the ability to createseparate multicast trees for specific <C-S, C-G> entries. In some cases,aggregate data trees may be setup when an amount of bandwidth on anaggregate default tree is greater than a specified threshold. In othercases, aggregate data trees may be setup when the bandwidth multipliedby the number of PE routers without subscriber devices for a specificmulticast group is above a specified threshold. The ingress PE routerthat originates the aggregate data tree and the egress PE routers of theaggregate data tree switch to the aggregate data tree for the <C-S, C-G>entries that are mapped to the aggregate data tree.

FIG. 7A illustrates a first switching process. An ingress PE router setsup an aggregate data tree mapped to one or more multicast groups, i.e.,<C-S, C-G> entries (100). The ingress PE router then announces themapping of the <C-S, C-G> entries to the aggregate data tree to theegress PE routers of the aggregate data tree. Depending on the multicasttunneling technology, the ingress PE router may make the announcementbefore or after setting up the aggregate data tree. After the egress PErouters of the aggregate data tree receive the announcement, the egressPE routers setup forwarding entries, as described above, to receivemulticast traffic on the aggregate data tree.

Once the ingress PE router sets up the aggregate data tree, the ingressPE router sends multicast packets of the specific <C-S, C-G> entriesmapped to the aggregate data tree on both the aggregate data tree andthe aggregate default tree (101). After a preconfigured amount of time(yes branch of 102), the ingress PE router stops sending the multicastpackets of the specific <C-S, C-G> entries on the aggregate default tree(103).

FIG. 7B illustrates a second switching process. An ingress PE routersets up an aggregate data tree mapped to one or more multicast groups,i.e., <C-S, C-G> entries (105). The ingress PE router then announces themapping of the <C-S, C-G> entries to the aggregate data tree to theegress PE routers of the aggregate data tree. Depending on the multicasttunneling technology, the ingress PE router may make the announcementbefore or after setting up the aggregate data tree. After the egress PErouters of the aggregate data tree receive the announcement, the egressPE routers setup forwarding entries, as described above, to receivemulticast traffic on the aggregate data tree.

Once the ingress PE router sets up the aggregate data tree, the ingressPE router sends multicast packets of the specific <C-S, C-G> entriesmapped to the aggregate data tree on the aggregate default tree (106).After a preconfigured amount of time (yes branch of 107), the ingress PErouter stops sending the multicast packets of the specific <C-S, C-G>entries on the aggregate default tree (108). The ingress PE router thenstarts sending the multicast packets of the specific <C-S, C-G> entriesmapped to the aggregate data tree on the aggregate data tree (109)

FIG. 8 illustrates an example IP encapsulated packet 110 fortransmission on a PIM-based multicast tree. Techniques described aboveenable separate transport of customer control information using non-PIMprotocols and establishment of aggregate multicast trees using PIM. Inthis way, the invention substantially eliminates the scalability issuesintroduced by conventional PIM techniques when a network includes alarge number of MVPNs each with a large number of subscriber sites. Theexample encapsulation of FIG. 8 this may be used for any of the types ofmulticast trees described herein, including aggregate default multicasttrees, aggregate data multicast trees, source multicast trees or sharedmulticast trees.

In this example, IP encapsulated packet 110 includes a provider IP(P-IP) header 112, a GRE header 113, an inner label 114, and anencapsulated payload 115. In the illustrated embodiments, encapsulatedpayload 115 includes a customer IP (C-IP) header 116 and a customerpayload (C-payload) 117. C-payload 117 may comprise a L3 multicast datapacket, such as an IP packet, requested by a subscriber device within aMVPN site.

P-IP header 112 contains the aggregate MDT or aggregate data MDTprovider group address as the destination address and the root addressof the MDT as the source address. The egress PE router of the MDT thatreceives IP encapsulated packet 110 performs a lookup on P-IP header 112and determines the forwarding entry or interface created within theegress PE router corresponding to the aggregate MDT or aggregate dataMDT. The forwarding entry or interface specifies the label space inwhich to perform a lookup of inner label 114.

Inner label 114 is unique within the context of the root of the MDT asit is assigned by the root of the MDT without coordination with other PErouters in the network. Therefore, inner label 114 is not unique acrossmultiple PE routers. In order to unambiguously identify a particularMVPN or multicast group, the egress PE router has to know inner label114 and the context within which inner label 114 is unique. The contextis provided by P-IP header 112.

The egress PE router strips P-IP header 112 and GRE header 113. Theegress PE router than performs the lookup of inner label 114 todetermine the VRF in which the egress PE router needs to perform thecustomer multicast data packet lookup. The egress PE router strips innerlabel 114 and sends the L3 multicast packet to the VRF for multicastdata forwarding.

FIG. 9 illustrates an example MPLS encapsulated packet 120 fortransmission on a RSVP- or LDP-based multicast tree. The exampleencapsulation of FIG. 9 this may be used for any of the types ofmulticast trees described herein, including aggregate default multicasttrees, aggregate data multicast trees, source multicast trees or sharedmulticast trees.

In this example, MPLS encapsulated packet 120 includes an MPLS label122, an inner label 123, and an encapsulated payload 124. In theillustrated embodiments, encapsulated payload 124 includes a customer IP(C-IP) header 125 and a customer payload (C-payload) 126. C-payload 126may comprise a L3 multicast data packet, such as an IP packet, requestedby a subscriber device within a MVPN site.

The egress PE router of an aggregate default tree or an aggregate datatree that receives MPLS encapsulated packet 120 performs a lookup onMPLS label 122 and determines the forwarding entry or interface createdwithin the egress PE router corresponding to the aggregate default treeor aggregate data tree. The forwarding entry or interface specifies thelabel space in which to perform a lookup of inner label 123.

Inner label 114 is unique within the context of the root of theaggregate tree as it is assigned by the root of the aggregate treewithout coordination with other PE routers in the network. Therefore,inner label 114 is not unique across multiple PE routers. In order tounambiguously identify a particular MVPN or multicast group, the egressPE router has to know inner label 123 and the context within which innerlabel 123 is unique. The context is provided by MPLS label 122.

The egress PE router strips MPLS label 122 and performs the lookup ofinner label 123 to determine the VRF in which the egress PE router needsto perform the customer multicast data packet lookup. The egress PErouter then strips inner label 123 and sends the multicast packet to theVRF for multicast data forwarding.

FIG. 10 is a flowchart illustrating an example process of forwardingmulticast data packets on an aggregate multicast tree across a publicnetwork. The process will be described herein in reference to SP network10 of FIG. 1. For purposes of illustration, multicast tree 15 comprisesan aggregate default tree. PE router 12A establishes multicast tree 15as a RSVP-TE P2MP LSP across SP network 10 between ingress PE router 12Aand egress PE routers 12B and 12C. PE router 12A maps MVPN A and MVPN Bto multicast tree 15. Multicast tree 15 may be a source tree or a sharedtree.

PE router 12A receives L3 multicast data packets, such as IP packets,for at least one of MVPN A and MVPN B from multicast source 24 (130). PErouter 12A encapsulates the multicast data packets for the one of MVPN Aand MVPN B that includes subscriber devices of the multicast traffic(131). PE router 12A then transmits the encapsulated packet on multicasttree 15, which is mapped to the MVPN (132).

Egress PE router 12C, for example, receives the encapsulated packet onmulticast tree 15 (134). Egress PE router 12C performs a lookup on theouter label of the encapsulated packet to determine the forwarding entrywithin egress PE router 12C that corresponds to multicast tree 15 (135).Egress PE router 12C then strips the outer label (136).

Egress PE router 12C performs a lookup on the inner label of theencapsulated packet to determine the VRF that corresponds to the MVPN(137). Egress PE router 12C then strips the inner label (138) and sendsthe multicast data packets to the corresponding VRF for forwarding tosubscriber devices of the multicast traffic within the MVPN site.

FIG. 11 is a block diagram illustrating exemplary autonomous systems(ASs) 150A-150C (“ASs 150) in which autonomous system border routers(ASBRs) 154A-154C (“ASBRs 154”) support at least one inter-AS MVPN. Inthe illustrated embodiment, ASBRs 154 support the inter-AS MVPN A andthe inter-AS MVPN B without requiring a single multicast tree to spanall of ASs 150. Principles of the invention described herein allow eachof ASs 150 to support an independent intra-AS multicast tree establishedby one or more tunneling technologies.

Each of ASs 150 may comprise a public network that includes a pluralityof network devices substantially similar to SP network 10 from FIG. 1.In some cases, each of ASs 150 may belong to different serviceproviders. Each of the MVPN sites may include a LAN or a WAN thatcomprises a plurality of subscriber devices, such as desktop computers,laptops, workstations, PDAs, wireless devices, network-ready appliances,file servers, print servers or other devices.

In the illustrated embodiment, AS 150A comprises ASBR 154A coupled tomulticast source 166 and PE router 156A coupled to MVPN B site 158. ASBR154A may setup a multicast tree 155 across AS 150A to PE router 156A.ASBR 154A may use PIM, RSVP, or LDP to establish multicast tree 155.Multicast tree 155 may comprise an aggregate default tree or anaggregate data tree. In addition, multicast tree 155 may comprise asource tree or a shared tree.

AS 150B comprises ASBR 154B, PE router 156B coupled to MVPN A site 160Aand MVPN B site 160B, and PE router 156C coupled to MVPN A site 162.ASBR 154B may set up a multicast tree 157 across AS 150B to PE router156B and PE router 156C. ASBR 154B may use PIM, RSVP, or LDP toestablish multicast tree 157. Multicast tree 157 may comprise any formof multicast tree, including the types described herein. For example,multicast tree 157 may comprise an aggregate default tree or anaggregate data tree. Alternatively, multicast tree 157 may comprise asource tree or a shared tree.

AS 150C comprises ASBR 154C and PE router 156D coupled to MVPN A site164A and MVPN B site 164B. ASBR 154C may set up a multicast tree 159 toPE router 156D. ASBR 154C may use PIM, RSVP, or LDP to establishmulticast tree 159. Multicast tree 159 may comprise an aggregate defaulttree or an aggregate data tree. In addition, multicast tree 159 maycomprise a source tree or a shared tree.

An inter-AS multicast tree 152 may be constructed by stitching togethermulticast tress 155, 157, and 159 within each of ASs 150 using MPLSlabel switching. For example, ASBR 154A may create inter-AS multicasttree 152 by stitching together multicast tree 155 established within AS150A, multicast tree 157 established within AS 150B, and multicast tree159 established within AS 150C. In this way, ASBR 154A providesmulticast traffic from multicast source 166 to the MVPN sites coupled toASs 150 via PE routers 156 without relying on a single multicast tree.In other embodiments, any of ASBRs 154 may construct inter-AS multicasttree 152.

Each of ASs 150 announces AS MVPN memberships to the other ASs 150 usingBGP advertisements. ASBRs 154 use the BGP advertisements to construct aspanning tree, i.e., inter-AS multicast tree 152, on which to transmitmulticast data packets for the MVPNs. MVPN membership information thenpropagates across ASs 150 along the spanning tree.

For AS MVPN membership discovery, the information elements are includedin a BGP encoding. The BGP advertisement includes a route distinguisherfor the MVPN that each ASBR in an AS uses when advertising to the otherASBRs 154. The advertisement also include an origin AS number that isencoded in an IP address, and an address of ASBR 154A as the next-hop.

For each inter-AS MVPN locally configured or discovered from aneighboring one of ASs 150, ASBR 154A instantiates multicast tree 155constrained to AS 150A. ASBR 154A forwards multicast packets receivedfrom multicast source 166 onto intra-AS multicast tree 155 with an innerlabel allocated by ASBR 154A for the MVPN. ASBR 154A also forwardscustomer multicast data packets received from multicast source 166 forthe MVPN to the other ASBRs 154 that belong to the MVPN. The multicastpacket is sent over inter-AS multicast tree 152 to ASBR 150B and ASBR150C with an inner label. In this case, the inner label for themulticast packet sent to ASBR 150B is advertised by ASBR 150B for theMVPN, and the inner label for the multicast packet sent to ASBR 150C isadvertised by ASBR 150C for the MVPN.

Various embodiments of the invention have been described. These andother embodiments are within the scope of the following claims.

1. A method comprising: establishing a multicast tree comprising apoint-to-multipoint (P2MP) tunnel for transporting layer three (L3)multicast data packets through a network, wherein the P2MP tunnelincludes a source device providing an ingress to the multicast tree anda plurality of destination devices providing a plurality of differentegresses from the multicast tree, wherein each of the plurality ofdestination devices belongs to at least one multicast virtual privatenetwork (MVPN); and transmitting the (L3) multicast data packets for aplurality of different MVPNs from the source device through the P2MPtunnel to the plurality of destination devices on the multicast tree,wherein establishing the multicast tree comprises: discovering, with thesource device, the MVPNs of which the destination devices are members;mapping more than one of the discovered MVPNs to the multicast tree;allocating a different inner label with the source device for each ofthe more than one MVPNs mapped to the multicast tree; advertisingmapping information from the source device to the one or moredestination devices, wherein the mapping information specifies which ofthe discovered MVPNs are mapped to the multicast tree by the sourcedevice; with the source device, including the allocated inner labelswithin the mapping information advertised from the source device to thedestination devices to allow the destination devices to demultiplex themulticast data packets received over the multicast tree for the morethan one MVPNs; in response to the mapping information advertised by thesource device, maintaining, within each destination device, a separatelabel space for the multicast tree, wherein the label space within eachdestination device includes forwarding entries for the inner labelsallocated by the source device, and wherein transmitting the multicastdata packets from the source device comprises encapsulating each of themulticast data packets at the source device with an outer label and oneof the inner labels, wherein the outer label identifies the label spacewithin the destination device that corresponds to the multicast tree,and wherein the inner label is based on the MVPN with which themulticast data packet is associated.
 2. The method of claim 1, furthercomprising determining with the source device which of the discoveredMVPNs to aggregate onto the multicast tree.
 3. The method of claim 1,wherein discovering the MVPN memberships comprises receiving BorderGateway Protocol (BGP) membership advertisements from the one or moredestination devices.
 4. The method of claim 1, wherein discovering theMVPN memberships comprises discovering virtual routing and forwarding(VRF) instances configured for multicast of the one or more destinationdevices.
 5. The method of claim 1, wherein advertising mappinginformation comprises sending Border Gateway Protocol (BGP) mappingadvertisements to the one or more destination devices of the multicasttree.
 6. The method of claim 1, wherein advertising mapping informationcomprises advertising an address of the source device of the multicasttree and an inner label allocated by the source device for each of themore than one MVPNs mapped to the multicast tree that identifies theMVPN.
 7. The method of claim 6, further comprising including a treeidentifier of the multicast tree, and a route target attribute of eachof the more than one MVPNs mapped to the multicast tree in the mappingadvertisement.
 8. The method of claim 1, further comprising: receiving,with one of the destination devices, the mapping information from thesource device of the multicast tree; associating the multicast tree withone or more of the MVPNs to which the destination device belongs; andcreating a forwarding entry in the destination device that correspondsto the multicast tree.
 9. The method of claim 8, further comprisingcreating a logical interface to the label space within the destinationdevice that corresponds to the multicast tree.
 10. The method of claim1, wherein establishing the multicast tree comprises establishing themulticast tree using protocol independent multicast (PIM).
 11. Themethod of claim 1, wherein establishing the multicast tree comprisesestablishing the multicast tree using a label switching protocol. 12.The method of claim 1, wherein encapsulating the multicast data packetscomprises encapsulating the multicast data packets using InternetProtocol (IP) encapsulation.
 13. The method of claim 1, whereinencapsulating the multicast data packets comprises encapsulating themulticast data packets using Multi-Protocol Label Switching (MPLS)encapsulation.
 14. The method of claim 1, further comprising: receivingthe multicast data packets from the source device of the multicast tree;and sending the multicast data packets to a virtual routing andforwarding (VRF) of the destination device that corresponds to the MVPNfor which the multicast data packets were intended based on an innerlabel allocated by the source device that identifies the MVPN.
 15. Themethod of claim 1, further comprising: receiving an encapsulated packetfrom the source device of the multicast tree, wherein the encapsulatedpacket comprises an outer label, an inner label, and encapsulatedmulticast data packets; performing a lookup on the outer label of theencapsulated packet to determine a forwarding entry within thedestination device that corresponds to the multicast tree; stripping theouter label from the encapsulated packet; performing a lookup on theinner label of the encapsulated packet in the corresponding forwardingentry to determine a virtual routing and forwarding (VRF) thatcorresponds to the MVPN for which the multicast data packets areintended; stripping the inner label from the encapsulated packet; andsending the multicast data packets to the corresponding VRF of the MVPN.16. The method of claim 1, wherein establishing the multicast treecomprises establishing a shared multicast tree, and wherein transmittingmulticast data packets on the multicast tree comprises transmittingmulticast data packets for both local and remote MVPNs of the sourcedevice to the one or more destination devices on the multicast tree. 17.The method of claim 1, wherein establishing the multicast tree comprisesestablishing a source multicast tree, and wherein transmitting multicastdata packets on the multicast tree comprises transmitting multicast datapackets only for local MVPNs of the source device to the one or moredestination devices on the multicast tree.
 18. A network devicecomprising: a control unit that establishes a multicast tree comprisinga point-to-multipoint (P2MP) tunnel for transporting layer three (L3)multicast data packets through a network, wherein thepoint-to-multipoint (P2MP) includes a source device providing an ingressto the P2MP tunnel and a plurality of destination devices providing aplurality of destinations for the P2MP tunnel within the network,wherein each of the destination devices belongs to at least onemulticast virtual private network (MVPN); an auto-discovery module thatdiscovers the MVPNs of which the destination devices are members; abinding module that maps more than one of the discovered MVPNs to themulticast tree; and one or more output interfaces that transmit the L3multicast data packets for more than one of the MVPNs through the P2MPtunnel on the multicast tree, wherein the control unit allocates adifferent inner label for each of the more than one MVPNs mapped to themulticast tree that identifies the MVPN and advertises mappinginformation to the one or more destination devices, wherein the mappinginformation specifies which of the discovered MVPNs are mapped to themulticast tree and includes the allocated inner labels to allow thedestination devices to demultiplex the multicast data packets receivedover the multicast tree for the more than one MVPNs, and wherein thecontrol unit encapsulates each of the L3 multicast data packets with anouter label and one of the inner labels, wherein the outer labelidentifies a label space within the destination device that correspondsto the multicast tree.
 19. The network device of claim 18, furthercomprising an aggregation module that determines which of the discoveredMVPNs to aggregate onto the multicast tree.
 20. The network device ofclaim 18, wherein the encapsulated packet comprises one of an InternetProtocol (IP) encapsulated packet or a Multi-Protocol Label Switching(MPLS) encapsulated packet.
 21. The network device of claim 18, whereinthe multicast tree comprises a shared multicast tree, and the controlunit transmits multicast data packets for both local and remote MVPNs ofthe source device to the one or more destination devices on themulticast tree.
 22. The network device of claim 18, wherein themulticast tree comprises a source multicast tree, and the control unittransmits multicast data packets only for local MVPNs of the sourcedevice to the one or more destination devices on the multicast tree. 23.A computer-readable storage medium comprising instructions storedthereon that cause a programmable processor to: discover, with a sourcedevice, a plurality of multicast virtual private networks (MVPNs) ofwhich a plurality of destination devices are members; establish amulticast tree comprising a point-to-multipoint (P2MP) tunnel fortransporting layer three (L3) multicast data packets through a network,wherein the multicast tree includes a source device providing an ingressto the multicast tree and the plurality of destination devices providingegresses from the multicast tree, wherein each of the destinationdevices belongs to at least one of the MVPNs; map more than one of thediscovered MVPNs to the multicast tree; allocate a different inner labelwith the source device for each of the more than one MVPNs mapped to themulticast tree; advertise mapping information from the source device tothe one or more destination devices, wherein the mapping informationspecifies which of the discovered MVPNs are mapped to the multicast treeby the source device; include the allocated inner labels within themapping information advertised from the source device to the destinationdevices to allow the destination devices to demultiplex the multicastdata packets received over the multicast tree for the more than oneMVPNs; encapsulate the multicast data packets at the source device withan outer label and one of the inner labels, wherein the outer labelidentifies the label space within the destination device thatcorresponds to the multicast tree, and wherein the inner label is basedon the MVPN with which the multicast data packet is associated; andtransmit the encapsulated multicast data packets for a plurality ofdifferent MVPNs from the source device through the P2MP tunnel to theplurality of destination devices on the multicast tree.
 24. A systemcomprising: a source device within a network, wherein the source deviceprovides an ingress to a multicast tree comprising a point-to-multipoint(P2MP) tunnel that transmits layer three (L3) multicast data packets formore than one of the MVPNs; one or more destination devices within thenetwork that provide egresses to the P2MP tunnel, wherein each of thedestination devices belongs to at least one multicast virtual privatenetwork (MVPN), wherein the source device allocates a different innerlabel for each of the more than one MVPNs and communicates the allocatedinner labels to the destination devices, wherein each of the destinationdevices maintain a label space that includes forwarding entries for theinner labels allocated by the source device, wherein the source deviceencapsulates each of the multicast data packets with an outer label andone of the inner labels, wherein the outer label identifies the labelspace within the receiving destination device that corresponds to theP2MP tunnel, and the inner label identifies the MVPN for which the L3multicast data packets are intended, and wherein the destination devicesdemultiplex the multicast data packets received over the multicast treefor the more than one MVPNs and select a virtual routing and forward(VRF) for forwarding the multicast data packets based on the differentinner labels of the multicast data packets.